package com.edu.scau.com.zhaoguangfeng.factorymode.abstractfactorymodel.factory;

import com.edu.scau.com.zhaoguangfeng.factorymode.abstractfactorymodel.bean.IBodyInsurance;
import com.edu.scau.com.zhaoguangfeng.factorymode.abstractfactorymodel.bean.ICollisonInsurance;
import com.edu.scau.com.zhaoguangfeng.factorymode.abstractfactorymodel.bean.ILifeInsurance;
import com.edu.scau.com.zhaoguangfeng.factorymode.abstractfactorymodel.bean.IMultiInsurance;

public abstract  class BuildingFactory {

	public static BuildingFactory getBuildingFactory(String type) {
		
		BuildingFactory factory = null ;
		if("super".equals(type)) {
			factory = new SuperBuildingFactory() ;
		}else if("medium".equals(type)) {
			factory = new MediumBuildingFactory() ;
			
		}
		
		return factory ;
		
	}
	
	
	
	public abstract IBodyInsurance getBodyInsurance() ;
	public abstract ICollisonInsurance getCollisonInsurance() ;
	public abstract ILifeInsurance getLiftInsurance();
	public abstract IMultiInsurance getMultiInsurance() ;
	
	
	
}
